home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18354 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  761 b 

  1. Path: nntp1.best.com!usenet
  2. From: javaprog@best.com (John Lockwood)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: stream question
  5. Date: Sat, 20 Apr 1996 02:13:29 GMT
  6. Organization: Best Internet Communications
  7. Message-ID: <4l9h8s$k6j@nntp1.best.com>
  8. References: <NEWTNews.829954661.22104.ger@kayak.fsl.wvnet.edu>
  9. NNTP-Posting-Host: javaprog.vip.best.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. George Racin <george@gypsy.fsl.wvnet.edu> wrote:
  13.  
  14.  
  15. >If name is equal to  "Ben Eric Smith" and is on one line of an ASCII text file
  16. >and I have the following code, how do I get the entire line into name, rather
  17. >than just "Ben".
  18.  
  19. Check out ifstream::getline() in online help or wherever. 
  20. Regards,
  21.  
  22.  
  23.  
  24. John Lockwood
  25. john@wwg.com
  26. javaprog@best.com
  27. http://www.best.com/~javaprog
  28.  
  29.